//package com.kangaroo.controller;
//
//import com.kangaroo.elasticsearch.EsBuild;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.ArrayList;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
///**
// * @Description:
// * @author ;liub
// * @Date: 2018-02-09 14:11
//**/
//@RestController
//public class TsEs2 {
//
//    @Autowired
//    EsBuild esBuild;
//
//    @RequestMapping("/index")
//    public String buildIndex(){
//        String indexName="test1";
//        String typeName="user";
//        Map<String, String> fieldInfos=new HashMap<String, String>();
//        fieldInfos.put("name","string");
//        fieldInfos.put("sex","string");
//        List<String> excludeFields=new ArrayList<String>();
//       String s= esBuild.buileIndex("cars_shop");
//       return s;
//    }
//}